a = [5, 8, 1, 9, 23, 88, 4]

for i in range(len(a) - 1):
    for j in range(len(a) - 1 - i):
        if a[j] < a[j + 1]:
            a[j], a[j + 1] = a[j + 1], a[j]
print(a)